package com.example.lotterysystem.controler.param;

import lombok.Data;

import java.io.Serializable;

/**
 * @Author xuejiao
 * Data 2025/5/3 17:37
 */

@Data
public class PageParam implements Serializable {


    /**
     * 当前页
     */
    private Integer currentPage = 1;

    /**
     * 当前页数量
     */
    private Integer pageSize = 10;

    /**
     * 获取偏移量
     * @return
     */
    public Integer offset(){
        return (currentPage-1)*pageSize;
    }
}
